/* style.css */
body {
    font-family: 'SimSun', '宋体', serif;
    background: linear-gradient(135deg, #e6f0ff 0%, #c2d9ff 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

h1 {
    color: #2c5282;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 2.2rem;
    border-bottom: 2px solid #bee3f8;
    padding-bottom: 15px;
}

h2 {
    color: #2c5282;
    border-left: 4px solid #63b3ed;
    padding-left: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.message-form {
    background: #f7faff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #bee3f8;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
}

input[type='text'], textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    background: white;
}

input[type='text']:focus, textarea:focus {
    outline: none;
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input[type='submit'] {
    background: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

input[type='submit']:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.4);
}

.messages-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #bee3f8;
}

th, td {
    padding: 15px;
    text-align: left;
}

th {
    background: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
    color: white;
    font-weight: 500;
}

tr:nth-child(even) {
    background-color: #f7faff;
}

tr:nth-child(odd) {
    background-color: #ffffff;
}

tr:hover {
    background-color: #ebf8ff;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.timestamp {
    color: #718096;
    font-size: 0.9em;
}